package dem2;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 33013
 * Date: 2023-03-28
 * Time: 22:44
 */

class Person{//父类
    public String name;
    public int age;
}

class Animal{
    public String name;
    public int age;
}
class Student extends Animal{//子类
    public String name;
    public int grades;
    public void eat(){
        System.out.println(super.name + "年龄为" + super.age + "正在吃饭");
    }
}

public class Test {
    public static void main(String[] args) {

    }
}
